package org.zp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zp.mapper.TypeInfoMapper;
import org.zp.pojo.TypeInfo;

@Service
@Transactional(rollbackFor = Exception.class)//出现异常就回滚事务
public class TypeInfoServiceimpl implements TypeInfoService{
	@Resource
	private TypeInfoMapper t;

	@Override
	public List<TypeInfo> getType(Integer fid) {
		// TODO Auto-generated method stub
		return t.getType(fid);
	}

	@Override
	public TypeInfo getTypebytid(Integer good2) {
		// TODO Auto-generated method stub
		return t.getTypebytid(good2);
	}

	@Override
	public List<TypeInfo> showTypes() {
		// TODO Auto-generated method stub
		return t.showTypes();
	}

	@Override
	public Integer updateTypeState(Integer jid, Integer pid, Integer state) {
		// TODO Auto-generated method stub
		return t.updateTypeState(jid,pid,state);
	}

	@Override
	public Integer updateTypeName(Integer jid, String name) {
		// TODO Auto-generated method stub
		return t.updateTypeName(jid,name);
	}

	@Override
	public Integer updateTypeJid(Integer jidd) {
		// TODO Auto-generated method stub
		return t.updateTypeJid(jidd);
	}

	@Override
	public Integer moveType(Integer moveIdd, Integer moveJuriPidd) {
		// TODO Auto-generated method stub
		return t.moveType(moveIdd,moveJuriPidd);
	}

	@Override
	public Integer addTypeWithMoney(String typeName, Integer tMoney) {
		// TODO Auto-generated method stub
		return t.addTypeWithMoney(typeName,tMoney);
	}

	@Override
	public Integer deleteType(Integer jidd) {
		// TODO Auto-generated method stub
		return t.deleteType(jidd);
	}

	@Override
	public List<TypeInfo> comboBoxType() {
		// TODO Auto-generated method stub
		return t.comboBoxType();
	}
}
